package com.wtwd.device.constant;

/**
 * 指令类型枚举
 */
public enum CmdTypeEnum {

    SEND_REQUEST(1, "下发请求"),
    SEND_RESPONSE(2, "下发相应"),
    REPORT_REQUEST(3, "上报请求"),
    REPORT_RESPONSE(4, "上报响应"),
    ;

    private Integer cmdType;

    private String msg;

    CmdTypeEnum(Integer cmdType, String msg) {
        this.cmdType = cmdType;
        this.msg = msg;
    }

    public Integer getCmdType() {
        return cmdType;
    }

    public void setCmdType(Integer cmdType) {
        this.cmdType = cmdType;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "CmdTypeEnum{" +
                "cmdType=" + cmdType +
                ", msg='" + msg + '\'' +
                '}';
    }
}
